package com.changgou.file;

import java.io.Serializable;

/**
 * 文件管理类
 *
 * @author mario
 * @version 1.0
 * @date 2020/11/12 14:24
 */
public class FastDfsFile implements Serializable {

  /** 文件名字 */
  private String name;
  /** 文件内容 */
  private byte[] content;
  /** 文件扩展名 */
  private String ext;
  /** 文件MD5摘要值 */
  private String md5;
  /** 文件创建作者 */
  private String author;
  /** 文件所在组 */
  private String group;
  /** 文件保存名称 */
  private String fileName;
  /** 文件路径 */
  private String url;

  public FastDfsFile() {}

  public FastDfsFile(
      String name,
      byte[] content,
      String ext,
      String md5,
      String author,
      String group,
      String fileName,
      String url) {
    this.name = name;
    this.content = content;
    this.ext = ext;
    this.md5 = md5;
    this.author = author;
    this.group = group;
    this.fileName = fileName;
    this.url = url;
  }

  public FastDfsFile(String name, byte[] content, String ext) {
    this.name = name;
    this.content = content;
    this.ext = ext;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public byte[] getContent() {
    return content;
  }

  public void setContent(byte[] content) {
    this.content = content;
  }

  public String getExt() {
    return ext;
  }

  public void setExt(String ext) {
    this.ext = ext;
  }

  public String getMd5() {
    return md5;
  }

  public void setMd5(String md5) {
    this.md5 = md5;
  }

  public String getAuthor() {
    return author;
  }

  public void setAuthor(String author) {
    this.author = author;
  }

  public String getGroup() {
    return group;
  }

  public void setGroup(String group) {
    this.group = group;
  }

  public String getFileName() {
    return fileName;
  }

  public void setFileName(String fileName) {
    this.fileName = fileName;
  }

  public String getUrl() {
    return url;
  }

  public void setUrl(String url) {
    this.url = url;
  }
}
